//
//  WPDiagnosisCell.m
//  wobingwoyi
//
//  Created by WGP on 2016/11/30.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import "WPDiagnosisLabelCell.h"
#import "WPContentModel.h"

@interface WPDiagnosisLabelCell ()

@property(nonatomic,strong)UILabel *label;

@end
@implementation WPDiagnosisLabelCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self label];
//        self.contentView.backgroundColor = [UIColor orangeColor];
    }
    return self;
}

-(UILabel *)label
{
    if (_label == nil)
    {
        _label = [UILabel new];
        _label.font = [UIFont systemFontOfSize:14];
        _label.numberOfLines = 0;
        _label.textColor = GLobalFontColor;
//        _label.backgroundColor = [UIColor orangeColor];
        [self.contentView addSubview:_label];
        
        [_label mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView).offset(10);
            make.left.equalTo(self.contentView).offset(10);
            make.right.equalTo(self.contentView).offset(-10);
            make.bottom.equalTo(self.contentView).offset(-10);
        }];
    }
    return _label;
}

-(void)setStr:(NSString *)str
{
    _str = str;
    self.label.text = str;
}

@end
